State Model Notation Using SCXML |
This topic provides an introduction to State Model Notation using SCXML. |
|
State Chart XML (SCXML) is used for denoting State Machine Notation for Control Abstraction 1.0.
SCXML provides a generic state-machine based execution environment based on CCXML and Harel State Tables. Refer this link for more details: http://www.w3.org/TR/2005/WD-scxml-20050705/
MDM feature of Process Platform uses SCXML to represent the state models. Below is an example of a simple state model (source: A Simple State Machine section in http://www.w3.org/TR/2005/WD-scxml-20050705/ ).
The equivalent XML representation of the model is give below:
<scxml version="1.0" xmlns="http://www.w3.org/2005/07/scxml">
<state id="S1">
<transition event="Event1">
<target next="S2"/>
</transition>
</state>
<state id="S2">
<transition event="Event2">
<target cond="X&gt;0" next="S1"/>
</transition>
<transition event="Event2">
<target cond="X&lt;0" next="S3"/>
</transition>
</state>
<state id="S3"/>
</scxml>